<?php


/**
 * Enter description here...
 *
 */
abstract class Waveself_CodeMarker_Abstract
{
	/**
	 * Adapters are loaded over siglenton instance.
	 * Current var is adapter container
	 *
	 * @var NULL|Mixed
	 */
	protected static $_adapters = null;
	
	/** Adapter Constants */
	CONST CLASS_PREFIX = 'Waveself_CodeMarker_Adapters_';
	CONST PHP          = 'Php';
	
	/**
	 * Magic method for retrieving existing siglenton
	 * adapters from it's container
	 *
	 * @param    String               $name
	 * @return   Object
	 * @throws   Waveself_Exception   If adapter not found
	 */
	public function __get($name)
	{
		if (!isset(self::$_adapters[$name])) {
			throw new Waveself_Exception("Adapter '{$name}' you tried to execute do not exist!");
		}
		return self::$_adapters[$name];
	}
	
}